package ajakuulauku;

public class Magnet extends GameObject{

	public Magnet() {
		this.setRadius(20);
		this.setImage("images/Magnet-1.png");
		this.isMovable = false;
		this.isCollideable = true;
		setForce(1500);
	}
	
	/**
	 * The Magnet's push force
	 */
	private double force;
	
	/**
	 * Constructor for a standard Magnet
	 * @param X coordinate, double
	 * @param Y coordinate, double
	 * @param r radius, double
	 * @param f force, double
	 */
	public Magnet(double X, double Y, double r, double f) {
		this.setX(X);
		this.setY(Y);
		this.setRadius(r);
		//this.setForce(f);
		this.setImage("images/Magnet-1.png");
		this.isMovable = false;
		this.isCollideable = true;
	}

	/**
	 * Set's the Magnet's push force to the value specified
	 * @param force, double
	 */
	public void setForce(double force) {
		this.force = force;
	}

	/**
	 * Returns the Magnet's push force
	 * @return
	 */
	public double getForce() {
		return force;
	}
}
